package com.kl.forum.service;

import com.kl.forum.dao.CirclePicMapper;
import com.kl.forum.entity.CirclePic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class CirclePicService {
    @Autowired
    private CirclePicMapper circlePicMapper;
    public int insert(Integer circleArticleId,String picPath){
        CirclePic circlePic=new CirclePic();
        circlePic.setCircleArticleId(circleArticleId);
        circlePic.setIsDel(1);
        circlePic.setCreateTime(new Date());
        circlePic.setPicPath(picPath);
        return  circlePicMapper.insertSelective(circlePic);
    }
}
